package com.itheima.sh.homeWork05;

import java.io.FileWriter;
import java.io.IOException;

public class FileWriterTest1 {
    public static void main(String[] args) {
        FileWriter fw= null;
        try {
            fw = new FileWriter("D:/ITheima/img1/java.txt");
            fw.write("HelloWorld");
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                fw.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }

    }
}
